import {
	axios
} from '@/service/request.js'

export default (data) => {

	//修改登录密码Api
	const changePasswordApi = async (url, params) => {
		const __data = await axios(url, params)
		return __data
	}
	//设置交易密码Api
	const setPayPasswordApi = async (url, params) => {
		const __data = await axios(url, params)
		return __data
	}

	//修改交易密码Api
	const ChangePayPasswordApi = async (url, params) => {
		const __data = await axios(url, params)
		return __data
	}

	//忘记交易密码Api
	const ForgetPayPasswordApi = async (url, params) => {
		const __data = await axios(url, params)
		return __data
	}

	//获取验证码
	const getCode = async (url, params) => {
		const __data = await axios(url, params)
		return __data
	}
	return {
		changePasswordApi,
		setPayPasswordApi,
		ChangePayPasswordApi,
		ForgetPayPasswordApi,
		getCode
	}
}